using System;
using System.Collections.Generic;
using System.Text;

namespace MspEmulator
{
    class updateF1Voltage : ISend, IUpdateDevice
    {
        private ushort fV1;

        public updateF1Voltage (ushort value)
        {
            fV1 = value;
        }
    
        #region ISend Members

        public void  Send()
        {
 	        Serial.Send(Utility.buildPack(Utility.collectData((byte)Utility.functCode.focusVoltage1)));
        }

        #endregion

        #region IUpdateDevice Members

        public void  updateDevice()
        {
 	        Device.fV1 = fV1;
        }

        #endregion
    }
}
